 /**
 * Description: 物资借出记录
 * @author:Hunter
 * @since:1.0.0
 *
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2018-04-08   Hunter       1.0.0     Initial
 */
package com.metro.paperless.report.beans.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.metro.core.beans.entity.BaseEntity;
import java.util.Date;
import com.metro.utils.DateUtil;
 /**
 * 物资借出记录<br>
 *
 * @author:Hunter
 * @since:1.0.0
 * @version [1.0.0, 2018-04-08]
 */
@Data()
@EqualsAndHashCode(callSuper = false)
public class ReportLendEntity extends BaseEntity{
    private static final long serialVersionUID=1L;
    //单号
    private String lendCode;
    //来往单位名称
    private String orgName;
    //经办人
    private String agentName;
    //发起时间
    private Date actionTime;
    //出借时间
    private Date lendTime;
    //物资编号
    private String materialsCode;
    //物资名称
    private String materialsName;
    //物资类别
    private String materialsType;
    //规格
    private String specification;
    //单位
    private String unit;
    //数量
    private String num;
    //时间
    private Date time;
    //单据号
    private String code;
    //来往单位id
    private Long orgId;
    //借还状态
    private String lendType;
   

    public String getActionTimeStr() {
        return DateUtil.formatDate(this.actionTime, "yyyy-MM-dd HH:mm:ss");
    }
    public String getLendTimeStr() {
    	return DateUtil.formatDate(this.lendTime, "yyyy-MM-dd HH:mm:ss");
    }
    public String getTimeStr() {
        return DateUtil.limitDay(this.time);
    }
}
